﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MyHealthOnline
{
    public static class Utility
    {
        public static DateTime GetStartOfWeek(int weekNo)
        {
            return new DateTime(DateTime.Now.Year, 1, 1).AddDays(weekNo * 7);
        }

        public static int GetWeek(DateTime dateTime)
        {
            return DateTime.Now.DayOfYear / 7;
        }
    }
}